package cn.wolfcode.luowowo.common.util;

import cn.wolfcode.luowowo.common.exception.LogicalException;

/**
 * 参数检测工具类
 */
public class AssertUtil {
    public static void hasLength(String value, String message){
        if (value == null || "".equals(value.trim())){
            throw new LogicalException(message);
        }
    }

    public static void isEquals(String password, String rpassword, String message) {
        if (!password.equals(rpassword)){
            throw new LogicalException(message);
        }
    }
}
